package com.fy.paymeny.api;

import com.alipay.api.AlipayApiException;
import com.fy.paymeny.vo.AliPay;

import javax.servlet.http.HttpServletResponse;

/**
 * @author 芣苡
 */
public interface PayService {
    /**
     * 功能描述: 支付接口
     * 〈〉
     *
     * @return : void
     * @author : fuyi
     * @date : 2022-06-10 9:23
     */
    void pay(AliPay aliPay, HttpServletResponse httpResponse) throws Exception;

    /**
     * 功能描述: 退款接口
     * 〈〉
     *
     * @return : java.lang.String
     * @author : fuyi
     * @date : 2022-06-10 9:23
     */
    String returnPay(AliPay aliPay) throws AlipayApiException;
}
